using System;
using System.Collections.Generic;

namespace NhaThuocOnline.Entities
{
    public partial class HoaDonBanHang
    {
        public HoaDonBanHang()
        {
            this.HoaDonBanHangChiTiets = new List<HoaDonBanHangChiTiet>();
            this.ICDVaHoaDonBanHangs = new List<ICDVaHoaDonBanHang>();
        }

        public int Id { get; set; }
        public string SoHoaDon { get; set; }
        public Nullable<System.DateTime> NgayLapHoaDon { get; set; }
        public string TongTienHoaDon { get; set; }
        public Nullable<int> KhachHangId { get; set; }
        public Nullable<int> ICDId { get; set; }
        public Nullable<int> BenhNhanId { get; set; }
        public Nullable<int> BacSiId { get; set; }
        public Nullable<int> NhathuocId { get; set; }
        public virtual BacSi BacSi { get; set; }
        public virtual BenhNhan BenhNhan { get; set; }
        public virtual NhaThuoc NhaThuoc { get; set; }
        public virtual ICollection<HoaDonBanHangChiTiet> HoaDonBanHangChiTiets { get; set; }
        public virtual ICollection<ICDVaHoaDonBanHang> ICDVaHoaDonBanHangs { get; set; }
    }
}
